import time

timestamp = round(time.time() * 1000)
print("当前时间戳:", timestamp)


from datetime import datetime

# 获取当前时间
now = datetime.now()

# 转换为时间戳
timestamp = datetime.timestamp(now)
print("当前时间戳:", timestamp)

